package com.shuiyun.cloud;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.shuiyun.cloud.dao.UserDao;
import com.shuiyun.cloud.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: cloud-tk
 * @description:
 * @author: shuiyun
 * @create: 2020-04-13 14:46
 **/
@Service
public class UserService {
    @Autowired
    private UserDao userDao;

    public List<User> findAll(){
        List<User> users = userDao.selectList(new QueryWrapper<>());
        return users;
    }
}
